package org.dromara.hm.enums;

/**
 *  代办事项类型
 * @Author If404 Hzy
 * @Date 2025-2025/3/11-10:11
 * @Version 1.0
 */
public enum TodoFollowIpTypeEnum
{
    PHONE_CALL(1, "电话"),
    DAILY_STORE_VISIT(2, "日常到店"),
    STORE_MEETING(3, "店内参会"),
    COMPANY_CONFERENCE(4, "公司集中大会"),
    HOME_VISIT(5, "家访");

    private final int code;
    private final String description;

    TodoFollowIpTypeEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code+"";
    }

    public String getDescription() {
        return description;
    }

    public static TodoFollowIpTypeEnum getByCode(int code) {
        for (TodoFollowIpTypeEnum type : values()) {
            if (type.code == code) {
                return type;
            }
        }
        return null;
    }
}
